package com.wei.frame.mvp;

import android.app.Activity;
import android.view.View;

import androidx.annotation.Nullable;

import com.trello.rxlifecycle4.LifecycleTransformer;
import com.wei.frame.ui.activity.BaseActivity;


/**
 * 作者:赵若位
 * 时间:2020/12/17 22:32
 * 功能:
 */
public interface IView {
    /*Toast*/
    void alert(@Nullable String alert);

    void showLoading();

    void hideLoading();

    void showDialog(@Nullable String message);

    /*获取根布局*/
    View getRootView();

    BaseActivity getDependencies();

    <T> LifecycleTransformer<T> bindRxLifecycle();

    /*跳转到Activity*/
    void openActivity(@Nullable Class<? extends Activity> cls);
}
